package com.example.mybatisplus.service.impl;

import com.example.mybatisplus.mapper.AdminMapper;
import com.example.mybatisplus.model.domain.Admin;
import com.example.mybatisplus.model.domain.Book;
import com.example.mybatisplus.mapper.BookMapper;
import com.example.mybatisplus.service.AdminService;
import com.example.mybatisplus.service.BookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lxp
 * @since 2021-11-08
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {

    @Autowired
    private AdminService adminService;

    @Override
    public void xx() {
        Book book = baseMapper.selectById(1);
        Admin admin = adminService.getById(1);
    }
}
